//
//  EndangeredSpeciesViewController.m
//  CulinaryKnowledge
//
//  Created by CaoHung on 7/16/14.
//  Copyright (c) 2014 GreenSun. All rights reserved.
//

#import "EndangeredSpeciesViewController.h"

#define isiPhone5  ([[UIScreen mainScreen] bounds].size.height == 568)?TRUE:FALSE

@interface EndangeredSpeciesViewController ()

@end

@implementation EndangeredSpeciesViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.title = @"絶滅危惧種ニホンウナギ";
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"backgroundIUCN.png"]];
    self.myScrollView.contentSize = CGSizeMake(320.0f, 1280.0f);
    
    if (!isiPhone5) {
        CGRect frame = CGRectMake(0.0f, 0.0f, 320.0f, 1350.0f);
        self.contentImage.frame = frame;
    }
}

- (void)viewDidAppear:(BOOL)animated
{
    //Show navigationController
    self.navigationController.navigationBarHidden = NO;
}

- (void)viewWillDisappear:(BOOL)animated
{
    //Hide navigationController
    self.navigationController.navigationBarHidden = YES;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
